POST api/otp/getCoeff

Извиква се от сайта на търговеца за получаване на коефициентите за изчисляване на месечна вноска, които да заложат на сайта си.

Request Information

URI Parameters

None.

Body Parameters

Параметри при извикване

CoefficientRequest
NameDescriptionTypeAdditional information
user

User. Уникална идентификация на ОТП

string

Required

Max length: 20

pass

Pass. Актуална парола за ОТП

string

Required

Max length: 20

onlineProductCode

КОП - Код на онлайн продукт

string

None.

installmentCount

Срок за погасяване – в брой месеци

integer

Range: inclusive between 0 and 999

Request Formats

application/json, text/json

Sample:
{
  "user": "sample string 2",
  "pass": "sample string 3",
  "onlineProductCode": "sample string 1",
  "installmentCount": 1
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Връщани данни от услугата

CoefficientResponse
NameDescriptionTypeAdditional information
errorCode

Код на грешка: 0 или празно при липса на грешка, иначе код на грешка

CoefficientErrorCodes

None.

errorText

Текст на грешка

string

None.

coeffList

Списък от коефициенти: списък от 1 или повече обекта, в зависимост от това дали е подаден КОП и Срок. Ако не е подаден КОП се връщат данните за всички активни КОП на ОТП. Ако е подаден КОП или Срок пълният списък се филтрира по тях.

Collection of Coefficient

None.

Response Formats

application/json, text/json

Sample:
{
  "errorCode": 100,
  "errorText": "sample string 1",
  "coeffList": [
    {
      "onlineProductCode": "sample string 1",
      "installmentCount": 1,
      "coeff": 1.0,
      "interestPercent": 2.0
    },
    {
      "onlineProductCode": "sample string 1",
      "installmentCount": 1,
      "coeff": 1.0,
      "interestPercent": 2.0
    }
  ]
}